﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using LibMinecraft.Server;
using System.Threading;
using System.Diagnostics;

namespace PartyCraftServer.Commands
{
    public class StopCommand : Command
    {
        public override bool RequiresOp
        {
            get { return true; }
        }

        public override string DefaultCommand
        {
            get { return "stop"; }
        }

        public override string Documentation
        {
            get { return "Stops the server.\nUsage: /stop"; }
        }

        public override void ExecuteCommand(RemoteClient client, params string[] parameters)
        {
            Process.GetCurrentProcess().Kill();
        }
    }
}
